export const getBaseUrl = (env) => {
    if(env === '') return ""
}


export const valToFormData = data => {
    const formData = new FormData();
    if (data && typeof data === "object") {
        for (const key in data) {
            if (Object.hasOwnProperty.call(data, key)) {
                const element = data[key];
                formData.append(key, element);
            }
        }
    }
    return formData;
}